import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
import router from './router'

import { create, NButton } from 'naive-ui'
const naive = create({
  components: [NButton]
})

//创建 pinia
const pinia = createPinia()

const app = createApp(App)

//挂载到vue根实例
app.use(pinia)
app.use(naive)
app.use(router)

app.mount('#app')
